import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/home/Home'
import Product from '@/pages/product/Product'
import Shopcart from '@/pages/shopcart/Shopcart'
import Vip from '@/pages/vip/Vip'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/home',
      name: 'home',
      component: Home
    },{
      path: '/product',
      name: 'product',
      component: Product
    },{
      path: '/shopcart',
      name: 'shopcart',
      component: Shopcart
    },{
      path: '/vip',
      name: 'vip',
      component: Vip
    },
    
  ],
  linkActiveClass:'mui-active'//覆盖默认的类，mui-active
})
